package org.mx.dal.test;

import org.mx.dal.test.config.DataSourceConfig;
import org.mx.dal.test.config.JtaTransactionConfig;
import org.mx.dal.test.config.OneTransactionConfig;
import org.mx.dal.test.config.TwoTransactionConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@SuppressWarnings("javadoc")
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class,
		DataSourceTransactionManagerAutoConfiguration.class 
		})
@Configuration
@Import({
	DataSourceConfig.class,
	OneTransactionConfig.class,
	TwoTransactionConfig.class,
	JtaTransactionConfig.class
})
public class DemoJtaApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoJtaApplication.class, args);
	}
}
